<?php
include_once("listPostcodes.php"); 
include_once("address.php"); 
include_once("originPostcode.php"); 
include_once("desPostcode.php"); 

$distance = new ListPostCode;
// $ori = "Scoresby";
// $dis = "Melborne";
// $distance->postOri_des($ori,$dis);
$objects = new address;
$objects->connect_db();
// $addressOrigin = $objects->getAddressOrigin($originPostcode);
$addressOrigin = $objects->getAddressOrigin("KT21 2SB");
$addressDest = $objects->getAddressDest("N14 6RA");
$distance->postOri_des($addressOrigin,$addressDest);
echo "distance = ".$distance->getTotal()."km <br >";
echo "price must pay is : ".$distance->calculation_Price().'($)';
// $myori= $myaddress->getAdressOrig();

?>